home *** CD-ROM | disk | FTP | other *** search
- unit Mainform;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, ExtCtrls, DBCtrls, Grids, DBGrids, StdCtrls, DB,
- Lookupdb, DBTables;
-
- type
- TForm1 = class(TForm)
- Table1: TTable;
- LookupDBCombo1: TLookupDBCombo;
- Edit1: TEdit;
- DBGrid1: TDBGrid;
- DBNavigator1: TDBNavigator;
- DataSource1: TDataSource;
- Label1: TLabel;
- Label2: TLabel;
- procedure LookupDBCombo1Change(Sender: TObject);
- procedure Table1AfterOpen(DataSet: TDataset);
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.LookupDBCombo1Change(Sender: TObject);
- begin
- Edit1.Text:=LookupDBCombo1.DisplayValue;
- end;
-
- procedure TForm1.Table1AfterOpen(DataSet: TDataset);
- begin
- Edit1.Text:=LookupDBCombo1.DisplayValue;
- end;
-
- end.
-